﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;

namespace TrainNet
{
    class Program
    {
        static void Main(string[] args)
        {
            List<HRPerson> list = new List<HRPerson>();
            string sql = "select * from ExployBaseFile;";
            using (SqlDataReader reader = SqlHelper.ExecuteReader(sql))
            {
                while (reader.Read())
                {
                    HRPerson hrp = new HRPerson();
                    hrp.员工姓名 = reader["员工姓名"].ToString();
                    hrp.员工编号 = Convert.ToInt32(reader["员工编号"]);
                    list.Add(hrp);
                }
            }
        }
    }
}
